(function () {
    ExecuteOrDelayUntilScriptLoaded(_registerGallery, 'clienttemplates.js');
})();

/*--------------------Company Picture Library----------------------*/
function _registerGallery() {
    //Company Picture Library
    var galleryLibraryFiledContext = {};
    galleryLibraryFiledContext.Templates = {};
    galleryLibraryFiledContext.Templates.OnPostRender = galleryLibraryRender;

    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(galleryLibraryFiledContext);
};

function galleryLibraryRender() {
    onEnablePictureLibrarySlideShow();
}